package com.little.test.server;

import com.little.test.api.IHello2;
import com.littlerpc.protocol.net.annotation.RpcService;
import org.springframework.stereotype.Service;

/**
 * Created by ChengPeng on 2017/6/20.
 */
@RpcService(IHello2.class)
@Service
public class Hello2Impl implements IHello2 {
    @Override
    public int doubleNum(int number) {

        int result = number * number;
        System.out.println("***********result:" + result);
        return result;

    }
}
